package ch.pizzapp.kurier.data;

import java.util.ArrayList;
import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonProperty;

public class CategoryDataList implements Parcelable {

	@JsonProperty("items")
	List<CategoryData> categoryDataList;

	@JsonProperty("status")
	String status;

	public List<CategoryData> getCategoryDataList() {
		return this.categoryDataList;
	}

	public void setCategoryDataList(List<CategoryData> categoryDataList) {
		this.categoryDataList = categoryDataList;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	protected CategoryDataList(Parcel in) {
		categoryDataList = new ArrayList<CategoryData>();
		in.readList(categoryDataList, CategoryData.class.getClassLoader());
		status = in.readString();
	}

	public CategoryDataList() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeList(categoryDataList);
		dest.writeString(status);
	}

	public static final Parcelable.Creator<CategoryDataList> CREATOR = new Parcelable.Creator<CategoryDataList>() {
		public CategoryDataList createFromParcel(Parcel in) {
			return new CategoryDataList(in);
		}

		public CategoryDataList[] newArray(int size) {
			return new CategoryDataList[size];
		}
	};
}